:root {
    --primary-color: #4f46e5;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    background: #f8fafc;
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-dark);
}

.page {
    @apply max-w-2xl mx-auto bg-white rounded-xl p-8 mb-8;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0,0,0,0.1);
}

h1, h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

h1 {
    @apply text-4xl text-center mb-8;
}

h2 {
    @apply text-2xl mb-6;
}

.form-group {
    @apply grid gap-4 mb-6;
}

label {
    @apply block text-sm font-medium text-gray-600 mb-1;
}

input, select {
    @apply w-full px-4 py-3 rounded-lg border border-gray-200;
    transition: all 0.3s ease;
    background: #f8fafc;
}

input:focus, select:focus {
    @apply ring-2 ring-[var(--primary-color)] border-transparent;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    @apply px-6 py-3 text-lg font-medium rounded-lg transition-all duration-300;
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

button.secondary {
    background: #f1f5f9;
    color: var(--text-dark);
}

button.secondary:hover {
    background: #e2e8f0;
}

.card {
    @apply bg-white rounded-xl p-6 mb-4;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stats-container {
    @apply grid grid-cols-2 gap-4 mt-6;
}

.stat-card {
    @apply bg-gradient-to-br from-[var(--primary-color)] to-[var(--secondary-color)] p-4 rounded-lg text-white;
}

.stat-card h3 {
    @apply text-sm font-medium opacity-80;
}

.stat-card p {
    @apply text-2xl font-bold mt-1;
}

#map-container {
    @apply rounded-xl overflow-hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

#map-container:hover {
    box-shadow: var(--shadow-lg);
}

@media (max-width: 640px) {
    body {
        @apply p-4;
    }

    .page {
        @apply p-6;
    }

    .stats-container {
        @apply grid-cols-1;
    }
}

/* 添加动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    animation: fadeIn 0.5s ease-out;
}

/* 添加加载动画 */
.loading {
    @apply flex items-center justify-center p-4;
}

.loading::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}